package com.mls.fivedistrict.dao;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.mls.fivedistrict.pojo.VoteOption;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 投票选项 Mapper 接口
 * </p>
 *
 * @author Five Team
 * @since 2018-05-15
 */
public interface VoteOptionMapper extends BaseMapper<VoteOption> {
    List<VoteOption> selectListByVoteId(@Param("voteId") long voteId);

    List<VoteOption> selectListAndVote(@Param("ew") Wrapper wrapper);

    VoteOption selectAndVote(@Param("id") Long voteOptionId);


    int addJoinCount(@Param("voteOptionId") Long voteOptionId);
}
